<div class="btn-group" style="margin-left: 5px;">
	<button av-event="[click] eventQuery(:node,:event,'state', false)" class="btn btn-default" av-class="{'active':( typeof state == 'undefined' )}">全部状态</button>
	<button av-event="[click] eventQuery(:node,:event,'state', 1)" class="btn btn-default" av-class="{'active':( state == 1 )}">正常</button>
	<button av-event="[click] eventQuery(:node,:event,'state', 0)" class="btn btn-default" av-class="{'active':( state == 0 )}">封禁</button>
	<button av-event="[click] eventQuery(:node,:event,'state', 2)" class="btn btn-default" av-class="{'active':( state == 2 )}">待审核</button>
</div>

<button class="btn btn-default" av-event="[click] eventState(:node,:event,true)" type="button" style="margin-left: 5px;"><span class="glyphicon glyphicon-ok-circle"></span> 认证成功</button>
<button class="btn btn-default" av-event="[click] eventState(:node,:event,false)" type="button" style="margin-left: 5px;"><span class="glyphicon glyphicon-ban-circle"></span> 认证失败</button>
<button class="btn btn-danger" av-event="[click] eventRemove(:node,:event)" type="button" style="margin-left: 5px;"><span class="glyphicon glyphicon-trash"></span> 删除</button>
<button class="btn btn-default" av-event="[click] eventSearch(:node,:event)" type="button" style="margin-left: 5px;"><span class="glyphicon glyphicon-filter"></span> 筛选</button>
<span av-if="checkRouterAnchorQuerySearch()" class="label label-default" style="margin-left: 5px;">存在筛选</span>

<hr/>
<table class="table table-striped">
  <thead>
    <tr>
      <th><input type="checkbox" checkbox="checkbox-all"></th>
      <th>#</th>
      <th><a href="javascript:;" av-event="[click] eventSort(:node,:event,'user_nickname_asc', 'user_nickname_desc')" ><span av-if="existSort('user_nickname_asc', 'user_nickname_desc')"   class="glyphicon" av-class="{'glyphicon glyphicon-sort-by-attributes':checkSort('user_nickname_asc'), 'glyphicon-sort-by-attributes-alt':checkSort('user_nickname_desc')}"></span>用户信息</a></th>
      <th><a href="javascript:;" av-event="[click] eventSort(:node,:event,'name_asc', 'name_desc')" ><span av-if="existSort('name_asc', 'name_desc')"  class="glyphicon" av-class="{'glyphicon glyphicon-sort-by-attributes':checkSort('name_asc'), 'glyphicon-sort-by-attributes-alt':checkSort('name_desc')}"></span>骑手名称</a></th>
      <th><a href="javascript:;" av-event="[click] eventSort(:node,:event,'phone_asc', 'phone_desc')"><span av-if="existSort('phone_asc', 'phone_desc')" class="glyphicon" av-class="{'glyphicon glyphicon-sort-by-attributes':checkSort('phone_asc'), 'glyphicon-sort-by-attributes-alt':checkSort('phone_desc')}"></span>手机号</a></th>
      <th>分配地区</th>
      <th><a href="javascript:;" av-event="[click] eventSort(:node,:event,'state_asc', 'state_desc')"><span av-if="existSort('state_asc', 'state_desc')" class="glyphicon" av-class="{'glyphicon glyphicon-sort-by-attributes':checkSort('state_asc'), 'glyphicon-sort-by-attributes-alt':checkSort('state_desc')}"></span>状态</a></th>
      <th><a href="javascript:;" av-event="[click] eventSort(:node,:event,'on_off_asc', 'on_off_desc')"><span av-if="existSort('on_off_asc', 'on_off_desc')"  class="glyphicon" av-class="{'glyphicon glyphicon-sort-by-attributes':checkSort('on_off_asc'), 'glyphicon-sort-by-attributes-alt':checkSort('on_off_desc')}"></span>是否开启接单</a></th>
      <th><a href="javascript:;" av-event="[click] eventSort(:node,:event,'update_time_asc', 'update_time_desc')"><span av-if="existSort('update_time_asc', 'update_time_desc')" class="glyphicon" av-class="{'glyphicon glyphicon-sort-by-attributes':checkSort('update_time_asc'), 'glyphicon-sort-by-attributes-alt':checkSort('update_time_desc')}"></span>更新时间</a></th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody>
  	<tr av-if="list && list.data && list.data.length" av-for="(value, key) list.data" av-event="[dblclick] eventTrDblclick(:node,:event)" av-attr="[data-id] value.user_id" data-checkbox="checkbox">
      <th><input type="checkbox" checkbox="checkbox" av-attr="[data-id] value.user_id"></th>
      <td>{{parseInt(key)+1+((parseInt(list.page_now) - 1) * list.page_size)}}</td>
      <td style="max-width: 250px;">
      	<div style="max-width: 250px;display: inline-block;">
          <img av-if="value.user_logo_image_id" av-attr="[src] applicationConfig.qiniu_domain+value.user_logo_image_id+'?imageView2/1/w/40'" class="img-circle">
          <span av-if="value.user_nickname" av-text="value.user_nickname"></span>
          <span av-else style="color: #999999;">未设置昵称</span>	
          <span av-if="value.user_phone_verify_list" style="word-wrap:break-word;">
          	({{value.user_phone_verify_list}})
          </span>
          <span av-else style="color: #999999;">无认证手机</span>
      	</div>
      </td>
      <td>{{value.express_rider_name}}</td>
      <td>{{value.express_rider_phone}}</td>
      <td>
      	<span style="color: #999;">省(直辖市):</span>{{value.express_rider_province}}
		<span style="color: #999;">市:</span>{{value.express_rider_city}}
		<span style="color: #999;">区(县):</span>{{value.express_rider_district}}
      </td>
      <td>
      	<span av-if="value.express_rider_state == 2" class="label label-warning">等待审核</span>
      	<span av-else-if="value.express_rider_state == 1" class="label label-success">正常</span>
      	<span av-else-if="value.express_rider_state == 0" class="label label-danger">停用</span>
      	<span av-else class="label label-default">未知</span>
      </td>
      <td>
      	<span av-if="value.express_rider_on_off == 1" class="label label-success">已开启</span>
      	<span av-else-if="value.express_rider_on_off == 0" class="label label-danger">已关闭</span>
      	<span av-else class="label label-default">未知</span>
      </td>
      <td>
      	<span av-if="parseInt(value.express_rider_update_time)">{{av.date("yyyy/MM/dd HH:mm EEE", parseInt(value.express_rider_update_time) * 1000)}}</span>
      	<span av-else>-</span>
      </td>
      <td>
      	<button av-event="[click] eventShowMessage(:node,:event,'查看骑手的简介', value.express_rider_info)" class="btn btn-default btn-sm" style="margin-right: 5px;">
			<span class="glyphicon glyphicon-exclamation-sign"></span> 查看简介
		</button>
		
		<a av-attr="[href] '#/express-riderEdit/?id='+value.user_id" class="btn btn-default btn-sm">
			<span class="glyphicon glyphicon-edit"></span> 编辑
		</a>
  	  </td>
    </tr>
    <tr av-else>
    	<td colspan="10" align="center">无数据</td>
    </tr>
  </tbody>
</table>

<div av-if="list.data.length" style="text-align: center;">
	<button class="btn btn-default" data-page="1" av-class="{'disabled':isFirstPage(list.page_now)}" type="button" style="margin-right: 5px;" av-event="[click] eventPageRequest(:node,:event)">首页</button>
	<button class="btn btn-default" av-attr="[data-page] parseInt(list.page_now) - 1" av-class="{'disabled':isFirstPage(list.page_now)}" type="button" style="margin-right: 5px;" av-event="[click] eventPageRequest(:node,:event)">上一页</button>
	<button class="btn btn-default" type="button" style="margin-right: 5px;">
		第{{list.page_now}}页
		/ 共{{list.page_count}}页
		/ 有{{list.row_count}}条数据</button>
	<button class="btn btn-default" type="button" av-attr="[data-page] parseInt(list.page_now) + 1" av-class="{'disabled':isEndPage(list.page_now, list.page_count)}" style="margin-right: 5px;" av-event="[click] eventPageRequest(:node,:event)">下一页</button>
	<button class="btn btn-default" type="button" av-attr="[data-page] list.page_count" av-class="{'disabled':isEndPage(list.page_now, list.page_count)}" style="margin-right: 5px;" av-event="[click] eventPageRequest(:node,:event)">尾页</button>
</div>
